<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>Website tho van</title>
    <link rel="stylesheet" href="<?php echo $this->config->base_url();?>fw/bootstrap/css/bootstrap.min.css" type="text/css" />
    <link rel="stylesheet" href="<?php echo $this->config->base_url();?>fw/bootstrap/css/bootstrap-theme.min.css" type="text/css" />
    <link rel="stylesheet" href="<?php echo $this->config->base_url();?>fw/bootstrap/js/bootstrap.min.js" type="text/css" />
</head>
<body>
<div class="container">
    <div class="row">
        <div class="view">
            <div class="page-header">
                <a href="<?php echo $this->config->base_url();?>">
                    <h1 contenteditable="false">
                        WEBSITE THO VAN
                        <small>Trang tho</small>
                    </h1>
                </a>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="view">
            <ul class="nav nav-tabs">
                <li role="presentation" class="active"><a href="#">Home</a></li>
                <li role="presentation"><a href="#">Profile</a></li>
            </ul>
        </div>
    </div>
    <div class="row">
        <div class="view">
            <div class="col-md-3 column ui-sortable" style="padding-left: 0px; padding-right: 3px;">
                <div class="list-group">
                <!-- <a href="/thoduong/" class="list-group-item active">Van hoc<span class="badge">14</span></a>
                <a href="#" class="list-group-item">Tho duong<span class="badge">14</span></a>
                <a href="#" class="list-group-item">Tho viet<span class="badge">14</span></a> -->

                <?php
                    foreach ($list_category as $category) {
                        if (empty($action) == false && $action == $category->caption_id) {
                            echo "<a href=" . '"/category/show/' . $category->caption_id . '"' . " class=" . '"list-group-item active">' .
                                 $category->caption . "<span class=" . '"badge">' . $category->count_poetic . '</span></a>';
                        } else {
                            echo "<a href=" . '"/category/show/' . $category->caption_id . '"' . " class=" . '"list-group-item">' .
                                 $category->caption . "<span class=" . '"badge">' . $category->count_poetic . '</span></a>';
                        }

                    }
                ?>
                </div>
            </div>
            <div class="col-md-6 column ui-sortable" style="padding-left: 0px; padding-right: 3px;">
                <div class="panel panel-primary">
                    <div class="panel-heading">
                        <?php
                            if (isset($caption) == true) {
                                echo $caption->caption;
                            } else {
                                echo "Ten bai tho / List duoc chon";
                            }
                        ?>

                    </div>
                    <div class="panel-body">
                        <!-- <p>Song gon trang giang buon diep diep</p> -->
                        <?php
                            if (isset($list_poetic) == true) {
                                $this->load->view("front_end/category", array('list_poetic' => $list_poetic));
                            } else if (isset($content) == true) {
                                $this->load->view("front_end/detail", array('content' => $content->content));
                            }
                        ?>
                    </div>
                </div>
            </div>
            <div class="col-md-3 column ui-sortable" style="padding-left: 0px; padding-right: 0px;">
                <div class="panel panel-primary">
                    <div class="panel-heading">Tools</div>
                    <div class="panel-body">
                        <p>Calendar, Clock ....</p>
                    </div>
                </div>
            </div>
        </div>

    </div>


</div>
</body>
</html>